import 'package:flutter/material.dart';

buildBottomItem(String title,String iconName) {
  return BottomNavigationBarItem(
      label: title,
      icon: Image.asset("assets/images/tabbar/$iconName.png",width: 32,),
      activeIcon: Image.asset("assets/images/tabbar/${iconName}_active.png",width: 32,)
  );
}

List<BottomNavigationBarItem> initBottomItems(){
  return[
    buildBottomItem("首页", "home"),
    buildBottomItem("书影英", "subject"),
    buildBottomItem("小组", "group"),
    buildBottomItem("市集", "mall"),
    buildBottomItem("我的", "profile")
  ];
}